﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SoccerEvaluator.WebSite
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void cmdLogin_Click(object sender, EventArgs e)
        {
            Business.User user = new Business.User();

            try
            {
                Session["user"] = user.Login(this.txtUser.Text, this.txtPassword.Text);

                ClientScript.RegisterStartupScript(typeof(string), "Close", "Close();",true);
            }
            catch
            {

            }

        }


    }
}